Optimal. Leaf size=35 \[ \frac {d \log (\sin (2 a+2 b x))}{b^2}-\frac {2 (c+d x) \cot (2 a+2 b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {4419, 4184, 3475} \[ \frac {d \log (\sin (2 a+2 b x))}{b^2}-\frac {2 (c+d x) \cot (2 a+2 b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3475
Rule 4184
Rule 4419
Rubi steps
\begin {align*} \int (c+d x) \csc ^2(a+b x) \sec ^2(a+b x) \, dx &=4 \int (c+d x) \csc ^2(2 a+2 b x) \, dx\\ &=-\frac {2 (c+d x) \cot (2 a+2 b x)}{b}+\frac {(2 d) \int \cot (2 a+2 b x) \, dx}{b}\\ &=-\frac {2 (c+d x) \cot (2 a+2 b x)}{b}+\frac {d \log (\sin (2 a+2 b x))}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.20, size = 32, normalized size = 0.91 \[ \frac {d \log (\sin (2 (a+b x)))-2 b (c+d x) \cot (2 (a+b x))}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.45, size = 75, normalized size = 2.14 \[ \frac {d \cos \left (b x + a\right ) \log \left (-\frac {1}{2} \, \cos \left (b x + a\right ) \sin \left (b x + a\right )\right ) \sin \left (b x + a\right ) + b d x - 2 \, {\left (b d x + b c\right )} \cos \left (b x + a\right )^{2} + b c}{b^{2} \cos \left (b x + a\right ) \sin \left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.09, size = 182, normalized size = 5.20 \[ \frac {\frac {c}{2 b}+\frac {d x}{2 b}-\frac {3 c \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{b}+\frac {c \left (\tan ^{4}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{2 b}-\frac {3 d x \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{b}+\frac {d x \left (\tan ^{4}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{2 b}}{\tan \left (\frac {b x}{2}+\frac {a}{2}\right ) \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )-1\right )}+\frac {d \ln \left (\tan \left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{b^{2}}+\frac {d \ln \left (\tan \left (\frac {b x}{2}+\frac {a}{2}\right )-1\right )}{b^{2}}+\frac {d \ln \left (\tan \left (\frac {b x}{2}+\frac {a}{2}\right )+1\right )}{b^{2}}-\frac {2 d \ln \left (1+\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.48, size = 308, normalized size = 8.80 \[ -\frac {2 \, c {\left (\frac {1}{\tan \left (b x + a\right )} - \tan \left (b x + a\right )\right )} - \frac {2 \, a d {\left (\frac {1}{\tan \left (b x + a\right )} - \tan \left (b x + a\right )\right )}}{b} - \frac {{\left ({\left (\cos \left (4 \, b x + 4 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} - 2 \, \cos \left (4 \, b x + 4 \, a\right ) + 1\right )} \log \left (\cos \left (2 \, b x + 2 \, a\right )^{2} + \sin \left (2 \, b x + 2 \, a\right )^{2} + 2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right ) + {\left (\cos \left (4 \, b x + 4 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} - 2 \, \cos \left (4 \, b x + 4 \, a\right ) + 1\right )} \log \left (\cos \left (b x + a\right )^{2} + \sin \left (b x + a\right )^{2} + 2 \, \cos \left (b x + a\right ) + 1\right ) + {\left (\cos \left (4 \, b x + 4 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} - 2 \, \cos \left (4 \, b x + 4 \, a\right ) + 1\right )} \log \left (\cos \left (b x + a\right )^{2} + \sin \left (b x + a\right )^{2} - 2 \, \cos \left (b x + a\right ) + 1\right ) - 8 \, {\left (b x + a\right )} \sin \left (4 \, b x + 4 \, a\right )\right )} d}{{\left (\cos \left (4 \, b x + 4 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} - 2 \, \cos \left (4 \, b x + 4 \, a\right ) + 1\right )} b}}{2 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.66, size = 55, normalized size = 1.57 \[ \frac {d\,\ln \left ({\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\mathrm {e}}^{b\,x\,4{}\mathrm {i}}-1\right )}{b^2}-\frac {\left (c+d\,x\right )\,4{}\mathrm {i}}{b\,\left ({\mathrm {e}}^{a\,4{}\mathrm {i}+b\,x\,4{}\mathrm {i}}-1\right )}-\frac {d\,x\,4{}\mathrm {i}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (c + d x\right ) \csc ^{2}{\left (a + b x \right )} \sec ^{2}{\left (a + b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________